import React from 'react'
import {HashRouter,Switch,Route,Redirect} from 'react-router-dom'
import About from './About'
import Home from './Home'
import Login from './Login'
class Router extends React.Component{
    render(){
        return(
            <HashRouter>
                <Switch>
                    <Route path="/about" component={About}/>
                    <Route path="/" component={Home}/>
                    <Redirect to="/login" component={Login}/>
                </Switch>
            </HashRouter>
        )
    }
}
export default Router